package org.ilead.iserve.util;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;

public final class DateTimeUtil {

	public static String getLocalDateTime() {
		SimpleDateFormat tempDate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
		return tempDate.format(new java.util.Date());
	}
	

	public static String getLocalDate() {
		SimpleDateFormat tempDate = new SimpleDateFormat("yyyy-MM-dd");
		return tempDate.format(new java.util.Date());
	}
	
	public static Timestamp getDateTimeTimestamp(){
		return  Timestamp.valueOf(getLocalDate()+" 00:00:00");
		
	}
	
}
